import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 全局引入Elementui组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//引入wangEditor
import wangEditor from "wangeditor";
//给Vue添加一个全局属性, 之后可以通过this.$wangEditor访问到此属性
Vue.prototype.wangEditor = wangEditor;


import axios from 'axios' 
import qs from 'qs'  //序列化插件
// 给Vue原型添加axios属性
Vue.prototype.axios = axios
Vue.prototype.qs = qs

Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
